text=input("请输入要保存的文字：")
with open("D:\第十周\hello.txt","w") as file:
    file.write(text)
print("保存成功！")